package com.jkhan.demo.design.decorator;

/**
 * @ClassName RedShapeDecorator
 * @Description
 * @Author hjk
 * @date 2022/10/22 14:04
 * @Version 1.0
 */
public class RedShapeDecorator extends ShapeDecorator{

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("border Color: Red");
    }

}
